package com.hp.define

/**
 * Created by hp4664 on 2018/1/26.
 */
public class MIMEType {
    public static  Map<String, String> types = new HashMap<String, String>() {
        {
            this.put("image/gif", ".gif")
            this.put("image/jpeg", ".jpg")
            this.put("image/jpg", ".jpg")
            this.put("image/png", ".png")
            this.put("image/bmp", ".bmp")
        }
    }


    public static String getSuffix(String mime) {
        return (String) types.get(mime)
    }
}
